package com.student.service;

import com.student.dao.FeMapper;
import com.student.pojo.Fe;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @author 是一个鸽子啊
 * @date 2020/4/14
 * @qq 364826415
 */
@Service
public class FeServiceImpl implements FeService {
    private FeMapper feMapper;
    @Autowired

    public void setFeMapper(FeMapper feMapper) {
        this.feMapper = feMapper;
    }

    @Override
    public List<Fe> queryFeList() {
        return feMapper.queryFeList();
    }

    @Override
    public int addFe(Fe fe) {
        return feMapper.addFe(fe);
    }

    @Override
    public int updateFe(Fe fe) {
        return feMapper.updateFe(fe);
    }

    @Override
    public int deleteFe(int feID) {
        return feMapper.deleteFe(feID);
    }

    @Override
    public Fe queryFeByID(int feID) {
        return feMapper.queryFeByID(feID);
    }
}
